test with an object to see if autoserialisation really works