Test the db_field_exists() function.
function testDBFieldExists() {
$this
->assertIdentical(TRUE, db_field_exists('node', 'nid'), 'Returns true for existent column.');
$this
->assertIdentical(FALSE, db_field_exists('node', 'nosuchcolumn'), 'Returns false for nonexistent column.');
}