Attachment-event test should only be executed when history allows it