refactored VendingMachine tests.