Add tests for isSWF, isImage and trigger