Fix test query