add tests for databaseservice