added date questionType directive and unit tests