fix a bug
add some spec test
add travis confg