Tests for examples. fixed #39
Merge pull request #43 from baby-loris/examples-tests

Tests for examples