NSUserDefaults wrapper
Convert to xctest