Fixed bad bug in struct copying where the first variable where copied to all the others. Updated test cases.