Added a new assertion to IntStreamTest
Use persistent data structures.