fixes #207

- adds a separate check to see if the return code from amazon was ami
instance not found
- added test cases