Those examples should definitely work. They're from the documentation.
Mentioned in issue #1439 (closed)