add test case and travis config