The big in-browser tests classes clean-up

Removed lots of unneeded code and simplified some of the remaining.
Very small nit: R < e, so this is not sorted.