Add tests for object manager and fix a few issues on history management
remove dependance on object manager