Fix AccountManager unit testcase.