Fix unused variable warning in test.