ENH: Test examples

Adds example testing to Travis. Can test locally using `make test` (which will run it) or `make examples`.

Closes #526.
@almarklein I get some strange error on this example in `master`. Do you have time to look into it / fix it?