Add some basic tests for our DOM shims.

Fixes #208.