some tests for DocumentStore