100% test coverage of serialize data

Resolves #2094