JQUERY unit test case issue fixed