Added test to test private method GetIndexOfNthCharHelper.