add mocked ValidationControllerTest
add basic unit test for RepositoryBasedRestController
add basic unit test for ServiceBasedRestController
add test for ResthubExceptionhandler and refactor