Added tests for testing specified intervals with date and time.