[server][DBClientTest] Use an efficient way.

Previously the for loop is repeated up to NumTestGoumaximum
In this patch, the maximum number of the loop is smaller than it.