Add basic working test
Refactor index
Add travis