move tests into examples
Merge pull request #12 from bakins/examples-as-tests

move tests into examples