bug fix in test case 5