batSubstring : fix fold_left, add fold_lefti, fold_righti + modification des tests

batSubstring : fix fold_left, add fold_lefti, fold_righti + modification des tests