Fixed test error because of  by reference