 
                                         // Test period
                                         if type == .Timer {
-                                            XCTAssertEqualObjects(queryArguments["period"], String(period), "The period value should be \"\(period)\"");
+                                            XCTAssertEqualObjects(queryArguments["period"], String(Int(period)), "The period value should be \"\(period)\"");
                                         } else {
                                             XCTAssertNil(queryArguments["period"], "The url query string should not contain the period");
                                         }

    }

}
*/

                                for period in periods {
                                    for counter in counters {
                                        // Create the token
                                        let token = Token(type: type, secret:secretString.dataUsingEncoding(NSASCIIStringEncoding), name:name, issuer:issuer, algorithm:algorithm, digits:digitNumber, period: period, counter: counter)

                                        // Serialize
                                        let url = token.url();

                                        // Test scheme
                                        XCTAssertEqualObjects(url.scheme, kOTPScheme, "The url scheme should be \"\(kOTPScheme)\"");
