added error test case for jquery