test query events