Added QUnit tests.