Add unit tests that used fixed test data

And test on Travis.

Old tests that require installed databases or network access were moved to `xt`.