Refactored the tasks unit tests to be more consitant with the other unit tests.
Refactored the tasks unit tests to be more consitant with the other unit tests.

jembi/openhim-core-js,jembi/openhim-core-js