add test for issue #27
some work on issue #27; serialization appears fixed, bbut deserialization is probably still broken