Setup and teardown global renderer for tests.