Add test for checking that a stream can be reopened.

I was experiencing some io exceptions thrown by the file_stream (or ancestors) descructor and realized that we didn't seem to have any unit tests for checking reopening of the same stream, hence this little simple unit test. If we already have such a test we can discard this branch.