We should just use a local `error` variable in each test. No need to have it in a global.