browser testing with phantomjs and writeToDisk