Repro tests for issues RavenDB-2330 and RavenDB-2331