Issue #3139465 by alexshipilov, osab: Replace assertions involving calls to is_file with assertFileExists()/assertFileNotExists()