Deleting of an item.

also fixed the broken test.