Add back `portionMode` for wrap method
Add QUnit test
Separate regular and CommonJS test pages