adding a test to verify the localStorage is supported fixing a bug on private browsing on safari