(#656) - add test for specific example of deletion
(#656) - fix loosing deletion of document