             XCTAssert(imageURLs[0] == "https://upload.wikimedia.org/wikipedia/en/0/0a/Justin_brandon_guitar.jpg")
             XCTAssert(imageURLs[1] == "https://upload.wikimedia.org/wikipedia/en/d/d2/Justindcooper.jpg")
             
-            var user: User = question.createdBy as! User
-            XCTAssert(user.userId == "usr:2418905")
-            XCTAssert(user.userName == "user1")
+            var user: User = question.createdBy as User!
+            XCTAssert(user.userId == "usr:2418905")
+            XCTAssert(user.name == "user1")
             
             
             // Test Second Valid Dictionary

            XCTAssert(imageURLs[0] == "https://upload.wikimedia.org/wikipedia/en/0/0a/Justin_brandon_guitar.jpg")
            XCTAssert(imageURLs[1] == "https://upload.wikimedia.org/wikipedia/en/d/d2/Justindcooper.jpg")
            
            let user: User = question!.createdBy as! User
            XCTAssert(user.userId == "usr:2418905")
            XCTAssert(user.userName == "user1")
        } catch {
            XCTFail()
            print("Error getting dictionary")

            XCTAssert(imageURLs[0] == "https://upload.wikimedia.org/wikipedia/en/0/0a/Justin_brandon_guitar.jpg")
            XCTAssert(imageURLs[1] == "https://upload.wikimedia.org/wikipedia/en/d/d2/Justindcooper.jpg")
            
            var user: User = question!.createdBy as User!
            XCTAssert(user.userId == "usr:2418905")
            XCTAssert(user.name == "user1")
            
            
            // Sets the question to nil
