Fix tests on Travis.