Fix FakeStream defects #7 and #8
Fix signed/unsigned mismatch warning in unit tests