examples and tests for consuming values