Test document deletion.