Fixed test func