Updated the tests to check uncaught sql error goes through