The tests were intentional, as they check equals method behaved correctly when passed wrong type objects.