Added withDebug option to phantomJsTests