Examples and docs: introduce unit testing