Some tweaks in the list module and output-related stuff in the test module