Automating the service layer tests