Renamed foldl as fold, and added some list unit tests