Fix unused variable warning in test_user_event.cpp