added interval unit test