make tests run in phantomjs