             else { XCTFail(); return }
         
         XCTAssertEqual(advertisingInterval.data, data)
-        XCTAssertEqual(advertisingInterval.data.count, GAPAdvertisingInterval.length)
-        XCTAssertEqual(MemoryLayout.size(ofValue: advertisingInterval), GAPAdvertisingInterval.length)
+        XCTAssertEqual(advertisingInterval.data.count, advertisingInterval.dataLength)
+        XCTAssertEqual(MemoryLayout.size(ofValue: advertisingInterval), 2)
         XCTAssertEqual(advertisingInterval, 1)
         XCTAssertEqual(advertisingInterval.miliseconds, 0.0625)
         XCTAssertEqual(advertisingInterval.description, "0.0625ms")

            let message = GAPMeshMessage(data: data)!
            
            XCTAssertEqual(message.data, data)
            XCTAssertEqual(message.data.count, GAPMeshMessage.length)
            XCTAssertEqual(MemoryLayout.size(ofValue: message), GAPMeshMessage.length)
        }
    }
    

        
        XCTAssertEqual(data.count, 0x06)
        
        XCTAssertNil(GAPSlaveConnectionIntervalRange(range: (0xFFF4, 0xFFF1)))
        XCTAssertNotNil(GAPSlaveConnectionIntervalRange(range: (GAPSlaveConnectionIntervalRange.min, GAPSlaveConnectionIntervalRange.min)))
        XCTAssertNotNil(GAPSlaveConnectionIntervalRange(range: (GAPSlaveConnectionIntervalRange.max, GAPSlaveConnectionIntervalRange.max)))
        
        let intervalRange = GAPSlaveConnectionIntervalRange(range: (GAPSlaveConnectionIntervalRange.min, GAPSlaveConnectionIntervalRange.max))
        let expectedData: [GAPData] = [intervalRange!]
        
        let types = expectedData.map { type(of: $0) }
