Add test case for the register parsing.