Refactoring of cmdb tests.