Added some threading tests