add test to cover more scenarios
add diff method to intervalset