what is the purpose of duplicating `assertEquals(p1, serializer.deserialize(serializer.serialize(p1)));` ?