added simple tests for serialization