Fix before-all hook in folder test