Add a test for clearItem to set localStorage