         // Dynamically different dimensions
         expectEqual(Measurement(value: 1_001_000, unit: MyDimensionalUnit.unitA), oneMegaA + oneKiloA)
         
-        var bugCount = Measurement(value: 1, unit: BugUnit())
+        var bugCount = Measurement(value: 1, unit: BugUnit.bugs)
         expectEqual(bugCount.value, 1)
-        bugCount = bugCount + Measurement(value: 4, unit: BugUnit())
+        bugCount = bugCount + Measurement(value: 4, unit: BugUnit.bugs)
         expectEqual(bugCount.value, 5)
     }
     


#if !FOUNDATION_XCTEST
if #available(OSX 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *) {
    var MeasurementTests = TestSuite("TestMeasurement")
    MeasurementTests.test("testBasicConstruction") { TestMeasurement().testBasicConstruction() }
    MeasurementTests.test("testConversion") { TestMeasurement().testConversion() }
    MeasurementTests.test("testOperators") { TestMeasurement().testOperators() }

        expectEqual(6, m3.value)
        expectEqual(m1, m2)
        
        let m10 = Measurement(value: 2, unit: BugUnit.bugs)
        let m11 = Measurement(value: 2, unit: BugUnit.bugs)
        let m12 = Measurement(value: 3, unit: BugUnit.bugs)
        
        expectEqual(m10, m11)
        expectNotEqual(m10, m12)
