Fix register test.