added more tests to intervals