fix compile some test code