Adding test to verify clean state and attribute changes after updating

a record and its association in one transaction.