Fixed a bug where the Close All Browsers was not reseting the browser count index. Added some unit tests around the browser index functionality.