more tests for the database functions