adding phantomjs support for tests