build template for unit test of Interval