Removed the test code for inventory