Add test for deleteDocs fix

Test for 708e9edd2ebbe90edf27db2eff60ef5438a67195