Fix automate Test