Tests for fold.