Adding table exists check to tests.