Refactoring for Account test case.