Make minor corrections to UM FieldsFile writer PR.

Corrects two very minor issues noted after #1443 was merged:
* Fix a small error in the integration test that leaves a file behind in the current directory
* Correct a spelling error in an exception message.