base interval and test

Signed-off-by: antikas <g.antikas@gmail.com>