Moved testing only hashing code to TestUtils
Converted try/catch to `@Test(expected=...)`
changed read loop to > 0