improves removal of sheets, adds test for keys being removed