Fix list compare

Changed comparison of Lists to comparison of Sets because the order of elements in the lists should not be taken in to account.