fix test case compile errs