adds list method, and updates list test