Unit test.
Change so that render is not called in init.