This is a utility function for the tests that verifies that the key set in a bucket matches a given key set.