tests: Convert erase.sh test to use Autotest.