Test `next` conditional function.

Closes #7.