[test] add test case for a function used as interval for rollup