Using qunit library for unit test in javascript