add travis support
add test cases