Upgrade unit test as Filesystem::dumpFile() does not exists before Symfony 2.3

Fix method

Skip exception test too if Filesystem is not up-to-date