Tests for takeWhile() and dropWhile().