Test event has been removed when element string is removed