         
         let null = NSNull()
         
-        let (newValue: AnyObject?, valid) = testAttributesEntity.attributeValueForJSONCompatibleValue(null, forAttribute: "stringAttribute")
+        let (convertedValue: AnyObject?, valid) = testAttributesEntity.attributeValueForJSONCompatibleValue(null, forAttribute: "stringAttribute")
         
         XCTAssert(valid, "Conversion should be valid")
         
-        XCTAssert(newValue == nil, "Converted value should be nil")
+        XCTAssert(convertedValue == nil, "Converted value should be nil")
     }
     
-    func testConvertJSONTranformedValueToCoreDataTranformedValue() {
+    func testConvertJSONDefaultTransformerTranformedValueToCoreDataTranformedValue() {
         
         let archivedDictionary = ["key": "value"] as NSDictionary
         

        
        let base64String = data.base64EncodedStringWithOptions(CoreDataAttributeJSONCompatibilityOptions.defaultOptions.base64EncodingOptions)
        
        let (newValue: AnyObject?, valid) = testAttributesEntity.attributeValueForJSONCompatibleValue(base64String, forAttribute: "defaultTransformer")
        
        XCTAssert(valid, "Conversion should be valid")
        
        XCTAssert(newValue as? NSDictionary == archivedDictionary, "Converted Value should be original archived dictionary")
    }
    
    func testConvertGarbageJSONTranformedValueToCoreDataTranformedValue() {
        
        let data = "GarbageData".dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion: true)!
        
        let (newValue: AnyObject?, valid) = testAttributesEntity.attributeValueForJSONCompatibleValue(data, forAttribute: "defaultTransformer")
        
        XCTAssert(!valid, "Conversion should be invalid")
        
        XCTAssert(newValue == nil, "Converted Value should be nil")
    }
    
    // MARK: - Convert CoreData to JSON Cases

import Foundation
import XCTest
import CoreData
import ExSwift

class CoreDataAttributeJSONCompatibilityTests: XCTestCase {
    
