add test for bad ip and throw error for malformed_policy_condition