Add a unit test for back navigation after restart

The commit containing the fix is SHA1 65bff96e
Add a unit test for clearing tabs and history