Fix input files and prepare tests.