Add tests for browser stuff.
This is partly a new procedure: we add regular unittests and not
doctests indicating that these tests should not go into
documentation. We also show here how to test UI components
(browser-stuff) using regular unittests instead of doctests. I have to
learn about all that myself.
The tests are far from being finished yet.