minor: fix unused variable warning in tests