adds test for outsideRanges
adds test for substringBetweenMatches