Adding missing Sprintf parameters in api test helper.