Add qunit and a bunch of tests.