Update unit tests to support the latest QUnit and PhantomJS.