Fix automate test