Equality test for policies