Edited render testing function