test fold edge cases
Merge pull request #275 from pyr/test-folds

test fold edge cases