add tests for database helpers module