added some tests for registration controller