updated refreshInventory and edited Test.java