[FIXED JENKINS-25897] Add range check for H(X-Y) syntax
[JENKINS-25897] Add tests
Merge pull request #1500 from daniel-beck/JENKINS-25897

[FIXED JENKINS-25897] Add range check for H(X-Y) syntax
Noting #1500