                     OHHTTPStubs.stubRequestsPassingTest({ request in
                         return (request.URL.absoluteString! == "http://rheinfabrik.de")
                         }, withStubResponse: { request in
-                            return OHHTTPStubsResponse(data: NSData(contentsOfFile: self.bundle.pathForResource("request-valid", ofType: "json")!), statusCode: 200, headers: nil)
+                            return OHHTTPStubsResponse(data: NSData(contentsOfFile: self.bundle.pathForResource("request-valid", ofType: "json")!), statusCode: 200, headers: [ "Content-Type": "application/json" ])
                     })
 
                     waitUntil { done in

                    OHHTTPStubs.stubRequestsPassingTest({ request in
                        return (request.URL.absoluteString! == "http://rheinfabrik.de")
                        }, withStubResponse: { request in
                            return OHHTTPStubsResponse(data: NSData(contentsOfFile: self.bundle.pathForResource("authorize-invalid-type", ofType: "json")!), statusCode: 200, headers: nil)
                    })

                    waitUntil { done in

                    OHHTTPStubs.stubRequestsPassingTest({ request in
                        return (request.URL.absoluteString! == "http://rheinfabrik.de")
                        }, withStubResponse: { request in
                            return OHHTTPStubsResponse(data: NSData(contentsOfFile: self.bundle.pathForResource("request-invalid-norefresh", ofType: "json")!), statusCode: 200, headers: [ "Content-Type": "application/json" ])
                    })

                    waitUntil { done in
