add tests for service and controller