#706 added unit test for source serialization (only had integration tests)