Improve the test coverage of services, controllers

Added more tests for services and controllers
New line above this line