Ya, it ended up being a weird situation where we had to use dependency injection in order to Mock the user defaults ... this way we can tell this class to use a mock for user defaults when we're running tasks ... however this could also be completed using the method swizzling technique