Add basic tests.
Add Travis.