Test cases for precede and follow restrictions