Fix most unit tests

Almost all of the unit tests now pass, on both Linux and Windows (on Windows, the tests require https://github.com/codeparty/html/commit/164d99a7ea575650e49593e0cfc9cd8471987808)

The two remaining test failures are actual bugs in either the test or the view component code (I'm not sure which).