rewrite tests for registrations_controller