Fix errors in RegistrationTest.