fix tests after file.prestent? check refactor