Move tests specific for fm func. from transmartApp
Escape NPE when mime file is not found.