Fix a few errors and warnings.
Separate part of ActionChooserIsolatedTest into a base class shared with
URLOpenerTest.  Do some checks (which currently fail).