added test and fixed structural identity for lists