GH-93 - Checking for target parentNode instead of the target node itself...

... to allow binding events to the component element

Added a simple test that binds an event to the component element and mocks an event.