Added unit test for setupDirectory to fail