Don't cache errors in persistent cache, fixed getting settings
Updated tests