How to do register model write read test(frontdoor, backdoor)?

In reply to Xiang.L:

Two things:
(1) you do not show how the access policy of the reg fileds is.
(2) your read and write command is the 3rd argument (parent) missing.