     }
     
     func testShareButtonInGroup() {
-        let bvc = BrowserViewController()
+        let bvc = BrowserViewController(appSplashController: TestAppSplashController())
         mockUserDefaults.clear()
         mockUserDefaults.set(10, forKey: BrowserViewController.userDefaultsTrackersBlockedKey)
         mockUserDefaults.set(true, forKey: BrowserViewController.userDefaultsShareTrackerStatsKeyNEW)

    }
    
    func testShareButtonOutGroup() {
        let bvc = BrowserViewController()
        mockUserDefaults.clear()
        mockUserDefaults.set(10, forKey: BrowserViewController.userDefaultsTrackersBlockedKey)
        mockUserDefaults.set(false, forKey: BrowserViewController.userDefaultsShareTrackerStatsKeyNEW)

class BrowserViewControllerTests: XCTestCase {
    private let mockUserDefaults = MockUserDefaults()
    
    class TestAppSplashController: AppSplashController {
        var splashView = UIView()
        func toggleSplashView(hide: Bool) {}
    }
    
    func testRequestReviewThreshold() {
        let bvc = BrowserViewController(appSplashController: TestAppSplashController())
        mockUserDefaults.clear()
        
        // Ensure initial threshold is set
