Fix Travis failing on API tests