rename 'sink' to 'stream'
fix test