Add tests

Closes #1
Add travis