Added some thread tests