Refactoring of TodoListControllerTest.waitForNode

The waitForNode method could use the assertTimeout assertion from JUnit5 instead of failing the test in the catch block