     }
     
     func testJpgFBFileParse() {
-        let filePath = NSBundle(forClass: FileBrowserTests.self).URLForResource("Stitch", withExtension: "jpg")!
+        let filePath = Bundle(for: FileBrowserTests.self).url(forResource: "Stitch", withExtension: "jpg")!
         let file = FBFile(filePath: filePath)
         XCTAssertEqual(file.filePath, filePath)
         XCTAssertEqual(file.isDirectory, false)

    }
    
    func testGifFBFileParse() {
        let filePath = NSBundle(forClass: FileBrowserTests.self).URLForResource("3crBXeO", withExtension: "gif")!
        let file = FBFile(filePath: filePath)
        XCTAssertEqual(file.filePath, filePath)
        XCTAssertEqual(file.isDirectory, false)

    func testCaseSensitiveExclusion() {
        let parser = FileParser.sharedInstance
        parser.excludesFileExtensions = ["gIf"]
        let directoryPath = Bundle(for: FileBrowserTests.self).bundleURL
        let directoryContents = parser.filesForDirectory(directoryPath)
        for file in directoryContents {
            if let fileExtension = file.fileExtension {
