Write account.init unit test