Modify the hid agent for gtest