Text property family should have singlequotes around the string

Fixes bug reported in #569

Also made a test for it, which checks that the family has singlequotes around the text.