All tests work, but the click-event triggering is a bit of a hack.