Fixed test scripts (but not the windows one).