fix test function compile error.