fix tests and folder creation