Make tests work both locally and at travis.