Added test for each
Added test for fold