Fix unused variables in tests to placate scan-build. Patch from Steve MacKenzie.