setup travis, coveralls and fix test