Add examples to tests

Closes #28 .