fix test case and fix require