Phantomjs integration tests