Add some unit tests with QUnit