add test code for the list