     
     func testMatchingWithWeekday() {
         // Testing with weekday 2 in grid view, which is wednesday in Spain
-        let unavailable = SCKUnavailableTimeRange(weekday: 2, startHour: 10, startMinute: 30, endHour: 12, endMinute: 30)
+        let unavailable = SCKUnavailableTimeRange(weekday: 2, startHour: 10, startMinute: 30, endHour: 12, endMinute: 30)!
         
         var calendar = Calendar(identifier: .gregorian)
         calendar.firstWeekday = 2 //Testing with pre-defined first day = Monday.

    }
    
    func testEqualty() {
        let unavailable = SCKUnavailableTimeRange(weekday: 3, startHour: 1, startMinute: 2, endHour: 5, endMinute: 6)
        let equal = SCKUnavailableTimeRange(weekday: 3, startHour: 1, startMinute: 2, endHour: 5, endMinute: 6)
        let diffWeekday = SCKUnavailableTimeRange(weekday: 9, startHour: 1, startMinute: 2, endHour: 5, endMinute: 6)
        let diffSH = SCKUnavailableTimeRange(weekday: 3, startHour: 9, startMinute: 2, endHour: 5, endMinute: 6)
        let diffSM = SCKUnavailableTimeRange(weekday: 3, startHour: 1, startMinute: 9, endHour: 5, endMinute: 6)
        let diffEH = SCKUnavailableTimeRange(weekday: 3, startHour: 1, startMinute: 2, endHour: 9, endMinute: 6)

    }

    func testInitialization() {
        let unavailable = SCKUnavailableTimeRange(weekday: 3, startHour: 1, startMinute: 2, endHour: 5, endMinute: 6)!
        XCTAssertEqual(unavailable.weekday, 3)
        XCTAssertEqual(unavailable.startHour, 1)
        XCTAssertEqual(unavailable.startMinute, 2)
