Asserting state with #expect in Swift Testing