CSharp: Add tests related to thread