Run tests on Travis CI

Fixes #281.