added tests for service-handler-lifecycle