rewrited a test with the DBAgentChecker test framework.