Add intervals tests