add scripted test and travis settings
Merge pull request #8 from xuwei-k/scripted-test

add scripted test and travis settings