CSHARP-797: Add more unit tests.