added test for masked data in writing data file for ModEM