function isSerialized(), with tests