Increasing coverage of virtual dom code and fixing bugs on the way.