add threading test demo