update tests to use the new Account type and catch rand.Read errors