[testDBClientHatohol] Fix wrong calculation of index for descending order