Add tests for calling service-id in all lifecycle phases