Fixing tests after changes in RegisterController
Refactoring functional tests