make_range function is fixed and properly tested

Fixes bug 1223293

Change-Id: I9c285be69cfa3e021cec418e5d794328b6066732