some refactoring of rendering tests