ReplaceEventIterator implemented (test function in main included)