added tests to make sure event delegation is being cleaned up