test: fix bug in test case