Add fix for sample api test.