Convert test into automated test