headless test with phantomjs