clean up test query