Convert CompoundTaskExecutionTest to Java
Add failure-condition tests to CompoundTaskExecutionTest
Miscellaneous tidies