add some test cases
add travis
Merge pull request #122 from 2betop/master

Optimize