Fixed inventory management in InventoryAccessTestImpl

Although this class isn't meant to be part of the final product, the
fixes at least allow proper testing of the application.