debug & add some test case