Added test for dumpForDirectory() method.