add some tests, add phantomjs