Update dependencies and fix final failing test under PhantomJS.