 
         // check that it matches given a different configuration
         file = NSBundle.mainBundle().pathForResource("duckduckgo", ofType: "xml", inDirectory: "SearchPlugins/en")
-        let duckDuckGoEngine: OpenSearchEngine! = parser.parse(file!)
+        let duckDuckGoEngine: OpenSearchEngine! = parser.parse(file!, id: "duckduckgo")
         XCTAssertEqual(searchTerm, duckDuckGoEngine.queryForSearchURL(duckDuckGoSearchURL))
 
         // check it doesn't match search URLs for different configurations

    func testExtractingOfSearchTermsFromURL() {
        let parser = OpenSearchParser(pluginMode: true)
        var file = NSBundle.mainBundle().pathForResource("google", ofType: "xml", inDirectory: "SearchPlugins/en")
        let googleEngine: OpenSearchEngine! = parser.parse(file!)

        // create URL
        let searchTerm = "Foo Bar"

    func testParsing() {
        let parser = OpenSearchParser(pluginMode: true)
        let file = NSBundle.mainBundle().pathForResource("google", ofType: "xml", inDirectory: "SearchPlugins/en")
        let engine: OpenSearchEngine! = parser.parse(file!, id: "google")
        XCTAssertEqual(engine.shortName, "Google")
        XCTAssertNil(engine.description)

