Jquery unit test case issue fixed