tests with phantomJS