Cleanup and more QUnit tests.