         #endif
     }
 
-    public func loadTestResources() {
-        self.text = load(forResource: "KennedySpeech", ofType: "txt")
-        self.html = load(forResource: "KennedySpeech", ofType: "html")
-        self.short = load(forResource: "MobyDickIntro", ofType: "txt")
+    func loadTestResources() {
+        self.rawText = load(forResource: "KennedySpeech", ofType: "txt")
+        self.text = ProfileContent.text(self.rawText!)
+        self.html = ProfileContent.html(load(forResource: "KennedySpeech", ofType: "html")!)
+        self.short = ProfileContent.text(load(forResource: "MobyDickIntro", ofType: "txt")!)
     }
 
     /** Wait for expectations. */

    // MARK: - Positive Tests

    func testProfileText() {
        let expectation = self.expectation(description: "profile(text:)")
        personalityInsights.profile(text: text) {
            response, error in

            if let error = error {

    func testProfileContent() {
        let expectation = self.expectation(description: "profile(content:)")
        let contentItem = ContentItem(
            content: rawText,
            id: "245160944223793152",
            created: 1427720427,
            updated: 1427720427,
