I added a simple Ruby test file. It only tests for the truncated hash bug.