Add test case for App.clearCache