Add test and few fix

Add a test for configures, and fix AWS/IAM Role check.
Because, necessary to work in EC2 outsides.