TST: Added test and fixed old tests.
DOC: Documented KeyError on removal of nonexistent object.