updated htsql_test to query more info