This is function is just using the address of the key_128 struct, but a hash function needs to use the actual values to work as intended.  I have made some changes to your test to show this [here](/awsaba/libvmi/blob/fix-v2p-cache/tests/test_cache.c)