This tests that ValidityState survives garbage collection.