Fixing tests (to overcome Mockery bug) by using real NodeElement