Add test for the renderHistory method