Add an event and a method to test-element-a.