Made the unit test changes to VendingMachineService.