Corrects next/prev link testing