Added unit tests for local store