unit test api query log listener