To not raise error when test fails with some values

To not raise ArgumentError(comparison error) when
test fails with some values whose classes are not same.