Fix examples in README and add them as test examples.