[server][DBAgentTest] Define tableProfileTest and use it.