add test cases for registrations controller