fix test in refreshRendering