 		transforms.ISO8601Date = NSDate(timeIntervalSince1970: 1398956159)
 		transforms.ISO8601DateOpt = NSDate(timeIntervalSince1970: 1398956159)
 		let JSON = mapper.toJSON(transforms)
-		
-		if let parsedTransforms = mapper.map(JSON) {
-			XCTAssert(transforms.ISO8601Date.compare(parsedTransforms.ISO8601Date) == .OrderedSame, "ISO8601Date should be the same")
-			XCTAssert(transforms.ISO8601DateOpt!.compare(parsedTransforms.ISO8601DateOpt!) == .OrderedSame, "ISO8601Date optional should be the same")
-		} else {
-			XCTAssert(false, "ISO8601Date Transform failed")
-		}
+
+		let parsedTransforms = mapper.map(JSON)
+		expect(parsedTransforms).notTo(beNil())
+		expect(parsedTransforms.ISO8601Date).to(equal(transforms.ISO8601Date))
+		expect(parsedTransforms.ISO8601DateOpt).to(equal(transforms.ISO8601DateOpt))
 	}
 	
 	func testISO8601DateTransformWithInvalidInput() {
 		var JSON: [String: AnyObject] = ["ISO8601Date": ""]
 		let transforms = mapper.map(JSON)
-		
-		XCTAssert(transforms.ISO8601DateOpt == nil, "ISO8601DateTransform should return nil for empty string")
-		
+
+		expect(transforms.ISO8601DateOpt).to(beNil())
+
 		JSON["ISO8601Date"] = "incorrect format"
 
 		let transforms2 = mapper.map(JSON)
-		
-		XCTAssert(transforms2.ISO8601DateOpt == nil, "ISO8601DateTransform should return nil for incorrect format")
+
+		expect(transforms2.ISO8601DateOpt).to(beNil())
 	}
 	
 	func testCustomFormatDateTransform(){

		transforms.int64Value = INT64_MAX
		
		let JSON = mapper.toJSON(transforms)
		
		if let parsedTransforms = mapper.map(JSON) {
			XCTAssert(parsedTransforms.int64Value == transforms.int64Value, "int64Type should be the same")
		} else {
			XCTAssert(false, "Int64Max failed")
		}
	}
	
	func testURLTranform() {

import UIKit
import XCTest
import ObjectMapper
import Nimble

class CustomTransformTests: XCTestCase {

