Improve the renderTo unit test