unit test for nested delete

Change-Id: Ica4ce3b4cb4ea5bbe4009dce9cec71ab835232f9