Added tests for the util.streams module.

These are primarily tests that the hashing function works as desired.
The performance tests are intended to guard against unnecessary
work being introduced into the hashing function itself.