add some object manager test, restructure manager injection