Fix mocked DBI in tests to match recent changes

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