Make pr-scala-test reusable for rangepos