added a test for RavenDB-1707