tests to store-settings and changed some vars to lets