added service configuration to test function