Fix test settings to honor used database

Signed-off-by: Michal Čihař <michal@cihar.com>