Added test for issue with event delegation when managing own view element
Fixed issue with event delegation when managing own view element