Added unit test for plugin storages ,bring fixes