fix test script in package.json and make it work with phantomjs