Adding license headers to hadKeyCriteria and test