Improve output in case test query error