update tests to not fail when adding middleware post-init
update tests to not fail when adding middleware post-init

segmentio/analytics.js-core,segmentio/analytics.js-core,nice-fungal/analytics.js-core,nice-fungal/analytics.js-core,segmentio/analytics.js-core