test case bug fix