add test for interval