Fixed test mode for OSX.