Test the db_table_exists() function.
function testDBTableExists() {
$this
->assertIdentical(TRUE, db_table_exists('node'), 'Returns true for existent table.');
$this
->assertIdentical(FALSE, db_table_exists('nosuchtable'), 'Returns false for nonexistent table.');
}