Fixed test render function