Test removal of event handlers

This test was missing as seen in the coverage report. Fixes issue #31.