Add methods, events and tests for my-element