SONAR-4069 Small improvements on new task feature
  * Simon feedback
  * Add additional JUnit tests