Support testing in phantomJS.