Bug 882867: fixing tab:testOpenInNewWindowOnOpen and other tab tests

A lot of tab tests open new windows unnecessarily, that is the main change here.