AmazonIpRuleManagerTest written, and some changes due to test results