Adding AccountManager invalidate feature and test

Added AccountManager invalidate feature to ShadowAccountManger.java and updated AccountManagerTest.java with appropriate test cases.