Use type check equality in tests