fixed wrong test flags when checking for files