fix get_service_class in test_mapper