[test] add addCallCount decorator function