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