Added a couple of unit tests around tasks.