Checking uniqueness of keys in spec.