return malformed_policy_condition if secureTransport is not a bool and add a test for it