Refactor MdsParser
Add test_parse_mds