Testing databaseManager