unit tests for controller with mock service