add text questionType directive and unit tests