Upgrade some test packages, simplify mocha-phantomjs usage a bit, fix a small lint issue