testing before_fold