Bug 359859 - [flex] Race condition between viewer state save and state restore if input memento is the same for old and new input (Add contributed test).