Store an expression rather than the flattened string for test input value

- The string is only generated on output