fix `cannot find symbol` error in Test case