Add travis configuration
Fix tests