Test helper for a value in a range.

Change-Id: I08f632f1f61364dad7014f0ce3dbcc59fbd8b61f