enable test_ami unittest and add test_sns