changed test to use list