unit test for RavenDB-1520