refactoring render tests