Test case for issue #18.
Check sender class in signal handler (closes #18).