fix tests; add travis-ci support