Fix unit test for render controller