Added qunit tests