added threading tests