Improve test snippets and README