Added a 100% coveraged spec for api/service.