addded unit-tests for serialization
Merge pull request #1162 from lambday/develop

addded unit-tests for serialization