Convert CompoundTaskExecutionTest to Java
Add failure-condition tests to CompoundTaskExecutionTest
Miscellaneous tidies
Merge pull request #1245 from sjcorbett/more-task-tests

More task tests