Fix failing tests. Add validation of org.apache.hadoop.hive.ql.Driver instance before retrieving results to avoid class cast exceptions