add test for through using stream and function in succession