Updated tests to check preservation of tabs