Testing a coin and string to hack a vending machine