Update tests and reset localStorage during cleanup