Fixed a bug where the session browser index was not being reset on Close All Browsers.
Added some unit tests around that fix.