As described inĀ WT-6746, during multiple restarts of the database, RTS shouldn't load the pages into memory that are unnecessary by confirming the transaction id. As of now, we don't have to compare it against the write generation numbers due to the transaction ids getting reset during restart for the pages that are not modified in the second restart.
Add a test to confirm the scenario.