Add a high-level unit test which can serve as a documentation example.