tests: setup, some tests, and travis config