added test for vending machine