corpus tests for adding documents