fix buggy test case