WIP: fix search_fold and map-reduce test