Added test for overlaps() method