added integration tests for registration,

small changes at registration controller