Added unit tests for cmd_registers module

The code coverage for cmd_registers.c is now 100%.

I added the ability to extract a pointer to the 4 word mock context
and then used it to test the set and get register commands.