fixed hashes returning short values, added a few more robust tests