fixed test bug ,fixed func clear