fixed a bug where processing flat files crashed the app.

updated the unit tests to test the v5.0 mappers