add travis support and a test case