add table generation and tests for qualifier and references