add testGeneric and PrintAllThread