Add travis-ci build status
Fix tests