Separate test/unit/wrap.js; make tests not fail when wrap module excluded
Move size() test to deprecated.js and avoid in other tests. Close gh-1237.