fixing crashing bug in settingscache and adding some top-level wrapper tests