maybe we can copy some tests from lucene here - I think the more unit tests the better,  I can remember I wrote a bunch when I added `BytesRefHash`