FamilyInstance.ByGeometry not keeping reference orientation

In this example I am basically creating family instances “TEST” from a list of solids made from a list of extruded rectangles in dynamo. Scripts runs fine when all the initial footprints are oriented the same way, however, when I have a list of solids in different orientations, the “TEST” instance does not follow its reference and is all created in one orientation. (highlighted in blue are the created instances; you can see the ones were not created in the same orientation as its parent reference.) Why is that? Any ideas @Dimitar_Venkov