added serializer test

don't export private data constructors