upgrade qunit and add tests