Test case of databaseManager