add travis badge, fix test