Update so that tests use phantomjs when travisci is running.