Make the query test more robust by enclosing all tests in try-catch blocks, and add some INSERT and more SELECT queries.