Added consume item API, testing support