add example tests
change example to new style
add new example
Merge pull request #141 from maraoz/bug/fix-examples

Fix and test examples