test for gt, gte, lt, lte ranges