[server][DBAgent] Add a test for the member DBAgent::SelectExArg::useDistinct.