fix use case 21 test code