improve tests and add travis support