added logic to insert history on update
extra test classes and plugin updates