gh-1401 added in text option in schema type and also tests

Minor nitpick: no need for the space after `text` and before `:`