Perhaps also have a test where duplicateFunction is passed to addEventListener twice