Fix broken test that only runs on Travis.