Base class for tests checking the Weight.matches implementations
Encapsulates a term position, start and end offset