Add test for registrationController