add test of example from README.md