Add localStorage test. Fix #453