write list render test in a more functional way