add tests for toBytesRef(), copyBytesRef()