             XCTAssert(imageURLs[0] == "http://t0.gstatic.com/images?q=tbn:ANd9GcQxLbgQI_moIEqTPMvD1J4QdeM0J73ILywafF8DnMvQK9V05opN")
             XCTAssert(imageURLs[1] == "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcS7DS6MWsARaso9bYemSASGt3mMbnUldIWK6N8Xao3xJ97oVjZM")
             
-            user = question.createdBy as! User
+            user = question.createdBy as User!
             XCTAssert(user.userId == "usr:2418205")
-            XCTAssert(user.userName == "user2")
+            XCTAssert(user.name == "user2")
             
             
             // Test Third 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")
            
            var user: User = question!.createdBy as! User
            XCTAssert(user.userId == "usr:2418905")
            XCTAssert(user.userName == "user1")
            
            
            // Sets the question to nil

            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.name == "user1")
        } catch {
            XCTFail()
            print("Error getting dictionary")
