The big in-browser tests classes clean-up

Removed lots of unneeded code and simplified some of the remaining.
yeah, I think we should follow Chromium practice? I'll drop these changes