Bug fix in scan for tenant-specific tables.
More tenant-specific metadata scan tests.