Add autotest tests to test_ami.sh