Allow template rendering in tests.

Template rendering in the tests allows us to check the state of the dom and perform events (click on buttons for instance.)