add travis support and some tests