Implement layoutSubviews location to pass tests. Adjusted tests for correct algorithm. This will need to be visually confirmed and adjusted later if needed. Note that adjustments are very easy, since expected and actual values are shown on each failing assertion in tests.