add test for maximum fold length. Currently 5000 passes on node