added test for custom object as service