migrate tests to mocha_phantomjs