Add tests with phantomjs