Test registrationWithoutClosingRegistrationForm has been added.
Some refactoring.