Update LongHash to just like BytesRefHash.
Add more LongHash tests adapted from BytesRefHash.