Add unit tests for dump function in parsers