Add buffer to stream and test it