Add a test based on the sample in the README.