test: verify that stream.destroy() throws err