             CGRect(
                 x: layoutRect.minX + l.layoutMargins.left,
                 y: layoutRect.minY + l.layoutMargins.top,
-                width: layoutRect.width - l.layoutMargins.left - l.layoutMargins.right,
-                height: layoutRect.height - l.layoutMargins.top - l.layoutMargins.bottom),
+                width: layoutRect.width - l.horizontalMargins,
+                height: layoutRect.height - l.verticalMargins),
             "frame not matching")
     }
 

            CGRect(
                x: layoutRect.minX + l.layoutMargins.left,
                y: layoutRect.minY + l.layoutMargins.top,
                width: layoutRect.width - l.layoutMargins.left - l.layoutMargins.right,
                height: TestLayoutable.sideLength),
            "frame not matching")
    }

                x: layoutRect.minX + l.layoutMargins.left,
                y: layoutRect.minY + l.layoutMargins.top,
                width: TestLayoutable.sideLength,
                height: layoutRect.height - l.verticalMargins),
            "frame not matching")
    }

