Tests for fold.
Merge branch 'fold'