         XCTAssertEqual(manager.activeEngine.name, CUSTOM_ENGINE_NAME)
         
         // Verify that it persisted the custom engine and updated the default engine
-        XCTAssertEqual(mockUserDefaults.setCalls, 2)
+        XCTAssertEqual(mockUserDefaults.setCalls, 3)
     }
     
     func testRemoveDefaultEngine() {

        manager.activeEngine = manager.engines[0]
        manager.removeEngine(engine: engineAdded)
        
        XCTAssertEqual(mockUserDefaults.setCalls, 4)
        XCTAssertFalse(manager.engines.contains(where: { (engine) -> Bool in
            return engine.name == engineAdded.name
        }))

        
        XCTAssertEqual(manager.engines.count, numberOfEngines)
        XCTAssertEqual(manager.activeEngine.name, activeEngine.name)
        XCTAssertEqual(mockUserDefaults.setCalls, 1)
    }
}

