refactor spec
fix travis ci