Test for ApiTimeCalculator