Added test for last fold
Added null function