automate test run with guard