Adding test for pages/automate.py