use test double rather than nock + amalgamatic-sfx, fixes #24