Adds tests for new serialization.