Add test to reproduce missing TableName function