Initial implementation of serialization test; progress on #882