fork of github.com/juju/testing