Refactored and fixed RegistrationViewScalaTest