Added test for popup opening.

Written for issue #177.
This test causes a popup to be open and url loaded
in it via an event handler (i.e. `onclick` event on a `a` link).