Added test_interval