update credit counter test