Added some tests for Task commands

I also fixed some failures discovered by the tests.
the parenthesis are needed because `.` has a lower precedence than `?:`. That resulted in "Task Description" being part of the condition and not the output. The other thing is the same as the previous PR.