Implemented unit testing for controller and services