add tests for database, lifecycle, and logging