unit tests for taskInfo-one directive controller