Fixed test compatibility in firefox