adds unit tests for Discourse.TextField
Merge pull request #1751 from velesin/text_field_tests

adds unit tests for Discourse.TextField