implementing easier command to ami and testing
some changes to test and coverage: