automate tests with guard