Not sure it's a good idea to pass the container for rendering. We can append the list to container outside the rendering function, and you have to consider the container for test case. But returning the list seems a little bit different for current test case logic. It's just a suggestion, anyway.