refactored exercises for automation client, added custom operation exercise to check permission on a doc