vending machine  test class