Add tests for example code
Add initial Travis config