replaced a test utility function with the alternative one that does not depends on the base DBAgent type.