Corrected bug in HrdUserTaskService and added unit test