fixed test for register