Add a test for the second example in the document.