Directory iteration test case

Probably a fix for my recently opened #72 if it's ok i used the DIRECTORY_SEPARATOR in the test fixture?
Somehow or other modified the foreach loop to handle the returned fileSPLObject better.