Fix a few table and alias-related tests