Testing a defect in selection code