Testing `getNext`