Added test for setting half intervals