This is a useful code example, but does it belong in this file? It may be better to start a wiki of testing examples hanging off Jamie's testing page.