substitute/avoidcapture-test complete, 13 passing