add test for NewSourceHashKeyGenerator