Removes duplication from test files
Removes DOM elements created by MediumEditor on deactivate fixing #164