         
         view.layoutSubviews()
         
+        let fillView = view.subviews[fillViewIndex]
         let expectedFrame = CGRect(x: 7, y: 7, width: 86, height: 86)
-        expect(view.subviews[2].frame).to(equal(expectedFrame))
+        expect(fillView.frame).to(equal(expectedFrame))
     }
     
     private func setupView(frame: CGRect = CGRect(x: 0, y: 0, width: 100, height: 100)) -> GTProgressBar {

        
        view.layoutSubviews()
        
        expect(view.subviews[2].backgroundColor).to(equal(UIColor.blue))
    }
    
    func testShouldAllowSettingProgressBarWidth() {

        let view = setupView()
        view.progress = 0.5
        view.layoutSubviews()
        let fillView = view.subviews[fillViewIndex]
        
        let expectedFrameWidth: CGFloat = 46
        expect(fillView.frame.width).to(equal(expectedFrameWidth))
    }
    
    func testLayoutSubivews_shouldNotAllowNegativeValuesForProgress() {
        let view = setupView()
        view.progress = -0.5
        view.layoutSubviews()
        let fillView = view.subviews[fillViewIndex]
        
        let expectedFrameWidth: CGFloat = 0
        expect(fillView.frame.width).to(equal(expectedFrameWidth))
    }
    
    func testLayoutSubivews_shouldNotAllowProgressToBeGreaterThanOne() {
        let view = setupView()
        view.progress = 1.5
        view.layoutSubviews()
        let fillView = view.subviews[fillViewIndex]
        
        let expectedFrameWidth: CGFloat = 92
        expect(fillView.frame.width).to(equal(expectedFrameWidth))
    }
    
    func testShouldAllowSettingProgressBarBorderColor() {
