controller test using a service