only test the stream parameter

preparing the case {strem, decode} to decode attachments if needed.