Fix bad auth test: Db.connect is documented to return null as the db parameter if an error occurs