Get testing working in phantomJS.