 	}
 
 
-}
+	func testPageName() {
+		let content = "Main Screen"
+		pixel.pageName = content
+		XCTAssertFalse(pixel.urlParameter.containsString(content))
+		XCTAssertTrue(pixel.urlParameter.containsString(content.stringByAddingPercentEncodingWithAllowedCharacters(.URLQueryAllowedCharacterSet())!))
+	}
+
+
+	func testTimeStamp() {
+		let date = NSDate(timeIntervalSince1970: 183084615) //19751021
+		pixel = PixelParameter(displaySize: displaySize, timeStamp: date)
+		XCTAssertTrue(pixel.urlParameter.containsString("\(Int64(date.timeIntervalSince1970 * 1000))"))
+		XCTAssertTrue(pixel.urlParameter.containsString("183084615000"))
+	}
+
+
+	func testVersion() {
+		XCTAssertTrue(pixel.urlParameter.containsString("400"))
+	}
+}

		pixel = PixelParameter(displaySize: self.displaySize)
	}

	func testDisplaySize() {
		let urlPart = pixel.urlParameter
		XCTAssertFalse(urlPart.containsString("\(displaySize.height)"))
		XCTAssertTrue(urlPart.containsString("\(Int(displaySize.height))"))

	}
}


class PixelParameterTest: XCTestCase {

	let displaySize: CGSize = CGSize(width: 1080, height: 1900)
	lazy var pixel: PixelParameter = PixelParameter(displaySize: self.displaySize)
