[server][testDBAgent] Make createIndex() protected, because it's unncessary to be called from other than subclasses.