Added unit test for cache clear command