Add event eip:replaceedit
Refactor test