fix unused variable error in test