Added a $localStorage service and test use case