added a unit test for slicer.hasOverlap

Added tests for the slicer.hasOverlap check to verify proper
functionality