Bugfix: #hasTable() sql was invalid in both postgres and mysql Database.
Update the unit test with new #hasTable() behaviour.