Fix for tests of rendering