Added missing unit tests for size.
Improved unit tests for heap streams.