Adding test for renderFile