chore(test): convert iife-flatten test to ES6.