Minor fixes for xdg.Mime
Add tests for parsing MIME magic database