running end-to-end tests using phantomjs