readme: reformat examples
test: add more tests