Test monoid laws for RetryPolicy
Filter out invalid policies from monoid tests