Fixes unit tests to use register constants instead of hard coded
register indices. If the order of the registers ever changes, the
tests will not have to be fixed.