More resilient audit record validation in tests