fix folding test