Migrate removeObjects test to ES6 modules