#19 fixed tests for task prerequisites, and tidied use of shared context