Add some tests, also add travis support.