Added junit tests for task model