[CSharpBinding] Fixed unit tests.