Test database connection within tests