Add test coverage for MDTM

This commit tests all branches of the MDTM command. It should accept
requests for existing files and reject requests for invalid files.