Fixed stream file test. Added more asserts.