Unit testing the service layer