Added a generic test function for services, and a separate test for each service generator.