Commit failing test for #27.
Make 'makeOutputStream' close the stream after getting EOF. Closes #27.