Fix: db.config is None when running tests