CSHARP-658: Added unit tests.