Don't use deprecated File.exists? in tests.