added interval api event and tests