Added test for events on detached component.

Added tests for events delegation and handling on detached component.