testknc: fix up test to allow -d and a couple of other things.