[server][DBAgentTest] Fix a bug that passes a wrong variable.