fixed not running test queries.