Fixed test producing warnings