Added CriteriaCalculatorTest for example from documentation