Test case for #9132 (takeWhile fusion)