tests: add travis-ci config and test script