Fixed bug in testmapinput.