Fix removing allocation entries.
Add tests for removing recurrences.