fixed some minor bug in test case 1