changes test to use list