Added unit tests for $Z.html

Moved dom tests to core.
Fixes #11 and #13