TextList code generation and tests