added tests (registration_ui_test.rb)
changes