Add test for case if loading credentials from storage has an error