[testDBTablesMonitoring] Fix the bug in which override method uses wrong paramters.

This should be merged with 01606043ad85.