Fixed and refactored UserRegistrationScalaUnitTest