Add missing test variables
Do not try to store stub in localstorage

Looks like it worked because the assertion was comparing 2 undefined
values.
Add missing import