modified assert to compare lists