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

        let engineToRemove = manager.engines[1]
        manager.removeEngine(engine: engineToRemove)
        
        XCTAssertEqual(mockUserDefaults.setCalls, 1)
        XCTAssertFalse(manager.engines.contains(where: { (engine) -> Bool in
            return engine.name == engineToRemove.name
        }))

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