add forgoten test file
fix serialization so that the tests pass
implement comments and normalize newlines