Fixed error in order selection tests