api event stats test case