added tests to registrations controller