Fail on ERR during importFile tests
Fix comparison of tolerance lengths