Bug fix to allow object removal without a commit
Added tests for the previous kwargs patch.