Test generator for expressions/code generator