Add test files. Fix bug
Add travis testing and readme badges