Clean up test queries