Update templates to include isRangeCfi function.
Add tests for isRangeCfi.