add test cases and conf for travis-ci