QUnit (javascript) tests added.