Added afterAdd, afterRemove and afterUpdate for extension operator.
Added tests as well.