added testcase in qunit tests #320