Dynamic database: fix unit tests (broken during the last rebase)