Add some unit test coverage for rendering infrastructure (#29).
Remove outdated injected handler stuff.