run tests in phantomjs instead of firefox; works more reliably