fixed warn in test case.