Fixed test on some platforms