add: can set max_interval option
add: interval/max_interval test
Merge pull request #2 from soranoba/feature/max-interval

can set max_interval option