Added test: should not write undefined to stream or end stream if no args are passed