Added unit tests for TaskInstanceAssert.
Added unit tests for TaskInstanceAssert by definition id.