Fixed mesh_file material reading and added test.