fixed failed test for registration