databaseFunctions: add tests