func TestHashing(t *testing.T) {
	h := newHasher()
	keys := []string{"test1", "test2", "1", "2"}
	seen := map[uint32]bool{}  
	for _, key := range keys {
		h.hashKey(key)
		for i := uint32(0); i < uint32(10); i++ {
			val := h.getHash(i)
			if _, ok := seen[val]; ok {
				t.Error("already hashed to value", val)
			}
			seen[val] = true
		}
	}
}
TestHashing verifies similar keys hash to different values for an
arbitrary number of hash functions.
package cbfilter
import (
	"testing"
)