Unused var
Explicitly check for request vars
Add localStorage test. Fix #453