Support RECORD field for auto table creation.
Fix misused assertion and remove unused variable at the testcase.