In the legal domain, it is common to reference existing laws, specific dates, and names.
it is very unlikely that the vocabulary generated during training will contain all possible words that are present in the test set.