Add specs for document deletion

I add the missing Spock specifications to test the deletion of files and
folders in the document section.