Added test to compute and return overlap of two ranges