Add test for proper register index creation.