test: add TestInputStream
app,worker: leak local errch
test: cosmetics
test: add TestOutputStream
test: better DuplicateProperty test