Scope some variables away from global.
Expose generateRangeComponent to public API in the test library template.