appropriate separation of rendering from the tests file