Build: Don't assume the browser environment; smoke test on Node w/ jsdom

Fixes gh-1950
Shouldn't that go the other way (`default` including `test`)?