More comprehensive test suite.

I plan to work on the new feature https://github.com/dominictarr/hyperscript/issues/8, but first I wrote comprehensive tests for the existing functionality so I make sure I don't accidentally break stuff.