replaced assertions using file_exists with phpunit's inbuilt
assertFileExists and assertFileNotExists
Merge pull request #6556 from CurosMJ/filesystem-tests-patch

FilesystemTest patch. Now using assertFileExists and assertFileNotExists