add tests for objectmanager