Fixed bugs and cleanup unittests.
Add the column name list to the table subquery rule