RegisterControllerTest modified