Fix remap file input. Correct tests.