Add qunit and make some other small changes