Adding few unit tests for getRangeString