tests pthread