The CosmosDb environment is woefully under-tested (4.9%) Perhaps use the Cosmos emulator to expand coverage?