Accessibility services stops when running tests

I am automating an app which needs to add one accessibility service and turn it on for app to function. But I can’t see any any service in Accessibility service when running tests through appium.

This is very urgent.