Better check of serialization : try to write the objects to a
ObjectOutputStream.