[client][test] Add a mechanism to use a different database on a test.