using phantomjs in tests