Add tests for the sample_interval in #3069