Started to add QUnit tests.