fix tests for ApiQueryLog listener