Update some tests to evaluate that the object has the same type