Added test for validation the type, when editing task.
Added test for validation the type, when editing task.

digitalnatives/jobsworth,arunagw/clockingit,ari/jobsworth,webstream-io/jobsworth,xuewenfei/jobsworth,digitalnatives/jobsworth,evinoca/clockingit,arunagw/clockingit,xuewenfei/jobsworth,evinoca/clockingit,rafaspinola/jobsworth,rafaspinola/jobsworth,webstream-io/jobsworth,webstream-io/jobsworth,webstream-io/jobsworth,evinoca/clockingit,ari/jobsworth,evinoca/clockingit,digitalnatives/jobsworth,rafaspinola/jobsworth,digitalnatives/jobsworth,rafaspinola/jobsworth,ari/jobsworth,xuewenfei/jobsworth,arunagw/clockingit,digitalnatives/jobsworth,ari/jobsworth,xuewenfei/jobsworth