adds unit tests for Discourse.TextField