update travis template and fix test