Fixed test failure due to sorting removal