Added a test of string generation for scalar-ref text.